#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "book.h"
#include "borrowing.h"
#include "student.h"
#include "filewriteandread.h"
#include <QVector>
#include "studetinformation.h"
#include "bookinformation.h"
#include "borrinformation.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_student_clicked();
    void closeEvent(QCloseEvent *event);
    void on_pushButton_book_clicked();

    void on_pushButton_borrowing_clicked();

    void close_student();
    void close_book();
    void close_borrowing();
private:
    QVector<Book> book;
    QVector<Student> student;
    QVector<Borrowing> borrowing;
    Ui::Widget *ui;
    StudetInformation* ui_stu;
    bookInformation* ui_book;
    borrInformation* ui_borr;
};
#endif // WIDGET_H
